﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;  
namespace Controller
{
    public class RoomController
    {
        protected RoomBussiness Controller = new RoomBussiness();
        public TblRoom objRoom = new TblRoom();
        
        public void AddData()
        {
            Controller.AddData(objRoom);
        }

        public bool DeleteData(int k)
        {
            return Controller.DeleteData(k);
        }

        public void UpdateData()
        {
            Controller.UpdateData(objRoom);
        }

        public List<TblRoom> GetAllData()
        {
            return Controller.GetAll();
        }

        public TblRoom GetDataByRoomID(int k)
        {
            return Controller.GetDataByKey(k);
        }
    }
}
